package com.whsxt.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Result {
	
	private Integer code = 200;
	
	private String msg = "SUCCESS";
	
	private Object data;
	
	public Result(Object data) {
		this.data = data;
	}
	
	public Result(CodeMsg codeMsg) {
		this.code = codeMsg.getCode();
		this.msg = codeMsg.getMsg();
	}
	
}
